clc;clear all;close all;
SKO_y=8;
Fd=44.2e6;
Td=1/Fd; %period discr.
T=10e-3; %period nakopl
L=T/Td; %kol-vo to4ek
Pf=1e-3; %probabilit0y of false alarm

M=16;
N=12;

delta_tau=1/2;
tau_tilda=(0:N-1)*delta_tau+delta_tau/2;
tau_max=N*delta_tau;
delta_f=2/3/T;
W_tilda=2*pi*((0:M-1)*delta_f+delta_f/2);
W_max=2*pi*M*delta_f;

[tau_tilda_m,W_tilda_m]=meshgrid(tau_tilda, W_tilda);

SKO_IQ=SKO_y*sqrt(L/2);
J1=1e5;%4islo experementov for poroga & gistogramm
J2=1e4;%4islo for harakteristik obnarujeni9

X2max=nan(1,J1);
signal='off';

